package com.yanqu.road.server.cmd.activity.autoreward;

import com.yanqu.road.pb.activity.AutoSendRewardProto;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.command.Command;
import com.yanqu.road.server.manger.activity.auto.send.AutoSendActivity;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.GameProtocol;
import io.netty.channel.ChannelHandlerContext;

@Cmd(code = GameProtocol.S_CROSS_ACTIVITY_AUTO_SEND_UNION_REWARD,desc = "")
public class CrossActivityAutoSendUnionRankCmd implements Command {
    @Override
    public void execute(ChannelHandlerContext ctx, YanQuMessage packet) throws Exception {
        AutoSendRewardProto.CrossUnionRankMsg msg = AutoSendRewardProto.CrossUnionRankMsg.parseFrom(packet.getBytes());
       AutoSendActivity.sendCrossUnionRankReward(msg);
    }
}
